<h1> Index Hot Product</h1>

<div id="hotproduct">
    <div id="project-label">Typing Name a Product</div>
    <input  id="project" style="height: 30px; width: 600px; font-size: 20px;">
    <div style="margin-top: 10px;"><button id="bt_addproducthot" class="Adminbutton">Add</button><button id="bt_cleart" class="Adminbutton">Clear</button></div>
    <input type="hidden"  id="project-id">
    <h1 hidden="hidden"  id="IDObject"></h1>
    <h1 hidden="hidden" id="CatalogObject"></h1>
    <h1 hidden="hidden" id="DongiaObject"></h1>

</div>
<textarea id="tb_data" hidden="hidden"  name="" cols="20" rows="10" style="width: 500px;" >
    <?php
        $sListAllProduct='hi';
        $aListProduct =$template->get('list_product');
        if(count($template->get('list_product')))
        {
            foreach($aListProduct as $product)
            {
                 echo   $product['uri'];
                 echo '-';
                 echo   $product['name'];
                 echo '-';
                 echo  $product['price'];
                 echo '-';
                 echo  $product['categoryname'];
                 echo '||';
                       
            }
        }
    ?>
</textarea>
<div style="margin-left: 20px; margin-top: 20px; text-align: left;"> 
    <h2>Danh Sách Sản Phẩm </h2>
    <table border="1" id="tablehotproduct" class="tableDisplay">
        <thead >
            <tr>
                <td>ID</td>
                <td>Product Name</td>
                <td>Catalog</td>
                <td>Money</td>
            </tr>
        </thead>
        <tbody>
            <?php
                $aListproducthot =$template->get('productHots');
                if(count($template->get('productHots')))
                {
                    foreach($aListproducthot as $product)
                    {
                        echo '<tr id="'.$product['uri'].'">';
                        echo '<td>'.$product['uri'].'</td>';
                        echo '<td>'.$product['name'].'</td>';
                        echo '<td>'.$product['categoryname'].'</td>';
                        echo '<td>'.$product['price'].'</td>';
                        echo '</tr>';
                    }
            } ?>
        </tbody>
    </table>
    <br>
    <p>Thông Tin Chi Tiết</p><a id="bt_addexit_producthot" hidden="hidden" href="javascript::void();">Ẩn Thêm Mới</a> <a id="lb_add_producthot" href="javascript::void();">Thêm Mới</a><img hidden="hidden" style="margin-left: 20px;" id="img_product" src="<?php echo URL::getLink('image/tick.png'); ?>"> <p id="lb_error_product" hidden="hidden" class="adminerror">Error :  Add Name New Catalogy</p>
    <div style="clear: both;"></div>
    <p style="float: left">ID : <input type="text" id="tb_id_product" style="width: 100px; background-color: #CCFF99;" readonly="readonly"></p>
    <div><p style="float: left; padding-left: 30px;">Product Name : <input id="tb_name_product" type="text" style="width: 300px; background-color: #CCFF99; " readonly="readonly"></p></div>
    <div style="clear: both;"></div>
    <div><button id="bt_delete_producthot"  class="Adminbutton">Delete</button></div>
</div>